package com.company.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.company.project.entity.SysGoodsTypeEntity;
import com.company.project.vo.resp.goods.TypeRespNodeVO;

import java.util.List;

/**
 * 商品类型表
 *
 * @author YangYulin
 * @email YangYulinit@163.com
 * @date 2020-08-08 13:44:35
 */
public interface SysGoodsTypeService extends IService<SysGoodsTypeEntity> {

    List<SysGoodsTypeEntity> selectAll(String storeId);
    List<SysGoodsTypeEntity> selectAll();
    List<TypeRespNodeVO> selectTree(String typeId);
    List<TypeRespNodeVO> selectAllTree(String goodsTypeId);
    boolean addGoodsType(SysGoodsTypeEntity sysGoodsType);
    void updateType(SysGoodsTypeEntity sysGoodsType);
}

